import request from './request'

/**
 * 获取系统日志列表
 */
export const getSystemLogList = (params) => {
  return request.get('/admin/system-logs', { params })
}

/**
 * 根据ID获取系统日志详情
 */
export const getSystemLogById = (id) => {
  return request.get(`/admin/system-logs/${id}`)
}

/**
 * 创建系统日志
 */
export const createSystemLog = (data) => {
  return request.post('/admin/system-logs', data)
}

/**
 * 删除系统日志
 */
export const deleteSystemLog = (id) => {
  return request.delete(`/admin/system-logs/${id}`)
}

/**
 * 清空所有日志
 */
export const clearAllLogs = () => {
  return request.delete('/admin/system-logs/clear')
}

